/* eslint-disable */
// @ts-ignore
import request from '@/utils/http';

import * as API from './types';

/** 获取用户所有权限码 POST /api/listPermission */
export async function apiListPermissionUsingPost({
  options,
}: {
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingListstring>('/api/listPermission', {
    method: 'POST',
    ...(options || {}),
  });
}

/** 分页访问日志 POST /api/pageLogLogin */
export async function apiPageLogLoginUsingPost({
  body,
  options,
}: {
  body: API.LogLoginde4075d9C6ab44618ea2979dc395fcb8;
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingPageDataVoLogLoginduixiang>('/api/pageLogLogin', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 分页操作日志 POST /api/pageLogOperate */
export async function apiPageLogOperateUsingPost({
  body,
  options,
}: {
  body: API.LogOperate55c38dcb4bb64e1b95fc3380f1d94ba4;
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingPageDataVoLogOperateduixiang>(
    '/api/pageLogOperate',
    {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json',
      },
      data: body,
      ...(options || {}),
    }
  );
}

/** 发送短信验证码 发送短信验证码 POST /api/SendServiceSms */
export async function apiSendServiceSmsUsingPost({
  params,
  options,
}: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.apiSendServiceSmsUsingPostParams;
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingboolean>('/api/SendServiceSms', {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 发送短信 POST /api/sendSms */
export async function apiSendSmsUsingPost({
  body,
  options,
}: {
  body: API.SendSmsBo;
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingboolean>('/api/sendSms', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 翻译(简体中文=》英文) 支持网页翻译 POST /api/translate */
export async function apiTranslateUsingPost({
  body,
  options,
}: {
  body: string;
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingstring>('/api/translate', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 天气 天气缓存一小时更新一次 POST /api/weather */
export async function apiWeatherUsingPost({
  options,
}: {
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingstring>('/api/weather', {
    method: 'POST',
    ...(options || {}),
  });
}
